import java.util.ArrayList;
import java.util.List;

public class CellList {
	private List<Cell> cells;
	private int number;
	
	public CellList(int number) {
		this.cells = new ArrayList<Cell>();
		this.number = number;
	}
	
	public void addCell(Cell cell) {
		this.cells.add(cell);
	}
	
	public List<Cell> getCells() {
		return this.cells;
	}
	
	public int getNumber() {
		return this.number;
	}
	
	public String toString() {
		String result = " '" + this.number + "' -> " ;
		
		for (Cell cell : this.cells) {
			result += cell + " ";
		}
		
		return result;
	}
	
	public boolean contains(Cell cell){
		return cells.contains(cell);
	}
}